package flex.control;

import javax.servlet.http.HttpServlet;

import flex.been.User;

@SuppressWarnings("serial")
public class UserAction extends HttpServlet{

	public String sayHello(String name) {
		System.out.println(name+" Flex call java success.");
		return "success";
	}
	public void addUser(User u){
		System.out.println(u.getUsername()+u.getPassword());
	}
	public User getUser(){
		User u = new User();
		u.setUsername("Java");
		u.setPassword("Java");
		return u;
	}
}
